﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OnlineManagement.Web
{
    public partial class About : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            btnGet.Click += new EventHandler(btnGet_Click);
            if(!Page.IsPostBack){
                DateTime dt = DateTime.Parse("2014/12/09 12:00 上午");
                DateTime dt2 = DateTime.Parse("2015-03-27");
                    //Common.YuChanHelper.GetYuChanDate();
                lbGet.Text = (dt2 - dt).TotalDays.ToString();
                //lbGet.Text = dt.ToString() + ";" + Common.YuChanHelper.GetYuChanDate(DateTime.Parse("2014/12/09")).ToString();
            }
        }

        void btnGet_Click(object sender, EventArgs e)
        {
            btnGet.Text = DateTime.Now.ToString();
        }

        
    }
}
